package com.cy.springbootemep.util;

import lombok.Data;

@Data
public class JsonResult {

    String message = "ok";
    Integer state = 1;
    Object data;

    public JsonResult(String message, Integer state, Object data) {
        this.message = message;
        this.state = state;
        this.data = data;
    }

    public JsonResult() {
    }

    public JsonResult(String message) {
        this.message = message;
    }

    public JsonResult(Integer state) {
        this.state = state;
    }

    public JsonResult(Object data) {
        this.data = data;
    }

    public JsonResult(String message, Integer state) {
        this.message = message;
        this.state = state;
    }

    public JsonResult(Integer state, Object data) {
        this.state = state;
        this.data = data;
    }

    public JsonResult(String message, Object data) {
        this.message = message;
        this.data = data;
    }
}
